%%-----------------------------------------------------------------------%%
%%--- Preamble ----------------------------------------------------------%%

%\documentclass[12pt,runningheads]{book}
\documentclass[a4paper,oneside,11pt]{book}

\usepackage{fullpage}
\usepackage{fancyvrb}
\usepackage{moreverb}
\usepackage{amsfonts}
\usepackage{helvet}
\usepackage{fancyheadings}
\usepackage{amsbsy}
\usepackage{amsthm}
\usepackage{amsgen}
\usepackage{amsfonts}
%\usepackage[german,english]{babel}
\usepackage{array,rotating}
\usepackage{graphicx,amsmath}
\usepackage{texdraw}
\usepackage{amssymb}
\usepackage{makeidx}  % allows for index generation
\usepackage[all,arc,dvips]{xy}
%\usepackage{twocolumn}
\usepackage{color}
\usepackage{fancybox}

% tikz, pgf graphics library
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepgfmodule{plot}
\usepackage{pst-3dplot}  % for 3-D graphics
\usepackage{subfigure}

% For typesetting code listings
\usepackage{listings}
\lstset{language={},
  keepspaces=true,
  xleftmargin=5mm,
  xrightmargin=5mm,
  basicstyle=\ttfamily,
  frame=single,
  framesep=2mm,
  framerule=0pt,
  % frameround=tttt,
  columns=flexible,
  backgroundcolor=\color[gray]{0.9},
  rulesepcolor=\color{black},
  % numbers=left,
  numberstyle=\footnotesize,
  language=Pascal
}

\definecolor{DarkOlive}{rgb}{0.1047,0.2412,0.0064}
\definecolor{FireBrick}{rgb}{0.5812,0.0074,0.0083}
\definecolor{RoyalBlue}{rgb}{0.0236,0.0894,0.6179}
\definecolor{RoyalGreen}{rgb}{0.0236,0.6179,0.0894}
\definecolor{RoyalRed}{rgb}{0.6179,0.0236,0.0894}
\definecolor{LightBlue}{rgb}{0.8544,0.9511,1.0000}
\definecolor{Black}{rgb}{0.0,0.0,0.0}
\definecolor{FuncColor}{rgb}{1.0,0.0,0.0}
\usepackage[colorlinks=true,linkcolor=black,citecolor=black,urlcolor=black]{hyperref}
\usepackage{url}
\usepackage{xspace}

% order these alphabetically
\newtheorem{axiom}{Axiom}[section]
\newtheorem{conjecture}[axiom]{Conjecture}
\newtheorem{corollary}[axiom]{Corollary}
\newtheorem{definition}[axiom]{Definition}
\newtheorem{example}[axiom]{Example}
\newtheorem{exercise}[axiom]{Exercise}
\newtheorem{lemma}[axiom]{Lemma}
\newtheorem{practice}[axiom]{Practice}
\newtheorem{proposition}[axiom]{Proposition}
\newtheorem{remark}[axiom]{Remark}
\newtheorem{theorem}[axiom]{Theorem}

\def\aaa{\mathbb{A}}
\def\nnn{\mathbb{N}}
\def\fff{\mathbb{F}}
\def\qqq{\mathbb{Q}}
\def\rrr{\mathbb{R}}
\def\ccc{\mathbb{C}}
\def\zzz{\mathbb{Z}}
\def\ZZ{\mathbf{Z}}
\def\ppp{\mathbb{P}}
\def\hhh{{\cal H}}
\def\pf{{\bf Proof: \ }}
\def\qed{$\Box$}
\def\stab{{\rm stab}}
\def\beqn{\begin{equation}}
\def\eeqn{\end{equation}}
\def\arccot{{\rm arccot}}
\def\arcsec{{\rm arcsec}}
\def\arccsc{{\rm arccsc}}
\def\vers{{\rm vers}}
\def\arcvers{{\rm arcvers}}
\def\fps2{{\rm ft./(sec.)}^2}

\DeclareMathOperator{\avg}{avg}
\DeclareMathOperator{\mesh}{mesh}

\newcommand{\SAGE}{{\sf Sage}\xspace}
\newcommand{\sage}{\SAGE}
\newcommand{\ds}{\displaystyle}

\newcommand{\fig}[2]{
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.6\textwidth]{graphs/#2}
\caption{#1}
\end{center}
\end{figure}
}

\newcommand{\boxedeqn}[1]{%
  \[\fbox{%
      \addtolength{\linewidth}{-2\fboxsep}%
      \addtolength{\linewidth}{-2\fboxrule}%
      \begin{minipage}{\linewidth}%
      \begin{equation}#1\end{equation}%
      \end{minipage}%
    }\]%
}

\newcommand{\boxedeqnalign}[1]{%
  \[\fbox{%
      \addtolength{\linewidth}{-2\fboxsep}%
      \addtolength{\linewidth}{-2\fboxrule}%
      \begin{minipage}{\linewidth}%
      \begin{align*}#1\end{align*}%
      \vskip .1in
      \end{minipage}%
    }\]%
}

\newcommand{\seq}[2]{\left(#1\right)_{#2=1}^{\infty}}

\makeindex

% the latest version of this document
\newcommand{\documentEdition}{0.13}


%%-----------------------------------------------------------------------%%
%%--- Document body -----------------------------------------------------%%

\begin{document}

\title{Integral Calculus and \sage}
\author{Dale Hoffman, William Stein, David Joyner}
\date{Version~\documentEdition}
\maketitle

%% Copyright page
{\thispagestyle{empty}
  \input{tex/notice.tex} \\\\
  \textbf{Edition} \\
  Version~\documentEdition \\
  \today
}

\frontmatter
% Setting the TOC depth: only list chapter and sections
\setcounter{tocdepth}{1}
\tableofcontents

\input{tex/preface.tex}

\mainmatter

% chapters
\input{tex/integral.tex}
\input{tex/integral-applications.tex}
\input{tex/polar-coordinates.tex}
\input{tex/integration-techniques.tex}
\input{tex/sequences-series.tex}
\input{tex/vectors-geometry.tex}
\input{tex/vector-functions.tex}
\input{tex/differential-equations.tex}

% appendices
\appendix
\input{tex/integral-tables.tex}
\input{tex/license-gfdl.tex}

\printindex
\end{document}
